07. Creating a Local Server II

Server Example Prep

Creating a Local Server - Part 2

Because we are writing server-side code, the console.log code will execute in the terminal, instead of the browser where you may be used to. Here is a video showing what this process looks like:

ND#0001 C3 L02 A08 Server Example

Server Quiz

Task Description:

Think about the steps to setting up a server and make sure you understand the logic:

Task List:

Task Feedback:

Boom, now you understand how to create a server with Node and Express.

Server Quiz 2

QUESTION:

Assuming you have created an app instance named app, and set variable named port to 8000 and have created a callback function named listening -- what line of code would you add above the callback function to successfully initiate a server named server?

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer